package com.study.spmongodb.convert;

/**
 * @author study
 * @version 1.0
 * @date 2020/10/11 23:02
 */
public class Demo {

    public static void main(String[] args) {
        final Car car = Car.builder().make("BMW").numberOfSeats(510000).build();

        final CarDto carDto = CarMapper.INSTANCE.carToCarDto(car);
        System.out.println(carDto);
        System.out.println(CarMapper.INSTANCE.carDto2car(carDto));

    }
}
